//package cn.cmvideo.springboot.poms;
//
//import java.util.Date;
//
//import org.apache.activemq.command.ActiveMQTopic;
//import org.apache.commons.lang3.time.DateFormatUtils;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.jms.core.JmsTemplate;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//@Component
//public class SenderTopic
//{
//	private String TopicName = "POMS_MSG_TOPIC";
//
//	@Autowired
//	private JmsTemplate jmsTemplate;
//
//	// @Scheduled(cron = "*/1 * * * * ?")
////	@Scheduled(fixedRate = 1)
//	public void sendMessage()
//	{
//		String msg = "Sending an email message " + DateFormatUtils.format(new Date(), "yyyy-MM-dd HH：mm：ss:SSS");
//		// System.out.println(msg);
//		jmsTemplate.convertAndSend(new ActiveMQTopic(TopicName), msg);
//	}
//}
